﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Table_Dal;
namespace BLL
{
    public class DapAnBll
    {
        public bool KiemTra_TrungKhoa(string Ma)
        {
            DapAnDal da = new DapAnDal();
            return da.KiemTra_TrungKhoa(Ma);
        }
        public bool Traloi(string ch, List<TraloiThi> tl)
        {
            DapAnDal da = new DapAnDal();
            return da.Traloi(ch, tl);
        }
        public List<DapAnTbl> DapAnCauHoi_TheoMacauHoi_TenCauHoi(string MaCauHoi, string TenCauhoi)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.DapAnCauHoi_TheoMacauHoi_TenCauHoi(MaCauHoi, TenCauhoi);
        }
        public int SoluongCauHoi_TheoMaCauhoi(string Macauhoi)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.SoluongCauHoi_TheoMaCauhoi(Macauhoi);
        }
        public bool XoaTatca_MaCauHoi(string MacauHoi)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.XoaTatca_MaCauHoi(MacauHoi);
        }
        public bool SuaDapAn(DapAnTbl Dapan)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.SuaDapAn(Dapan);
        }
        public bool XoaDapAn(string MaDapAn)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.XoaDapAn(MaDapAn);
        }
        public bool ThemDapAn(DapAnTbl dapan)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.ThemDapAn(dapan);
        }
        public string PictureLink(string MaDapan)
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.PictureLink(MaDapan);
        }

        public List<string> LayTatCa_string()
        {
            DapAnDal DaDal = new DapAnDal();
            return DaDal.LayTatCa_string();
        }
    }
}
